// hexamer.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <fstream.h>
#include <string.h>

int main(int argc, char* argv[])
{
//	printf("Hello World!\n");
	ofstream fout;
	//int j=0,k=0,i=0;
	//int point = 0;
	
	fout.open("hexmer.txt");
	
	char * alp = "ATGC";
	
	char hex[7];
	memset(hex,'\0',sizeof(hex));
	
	//strcpy(hex,"AAAAAA");
	
	for(int i=0;i<4;i++)
	{
		for(int j=0;j<4;j++)
		{
			for(int k=0;k<4;k++)
			{
				for(int l=0;l<4;l++)
				{
					for(int m=0;m<4;m++)
					{
						for(int n=0;n<4;n++)
						{
							sprintf(hex,"%c%c%c%c%c%c",alp[i],alp[j],alp[k],alp[l],alp[m],alp[n]);	
							fout<<hex<<endl;
						}
		
					}
		
				}
		
			}
		}
		
	}

	return 0;
}

